<form id="pagerForm" method="post" action="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/index/')}">
	<input type="hidden" name="pageNum" value="{$currentPage|default='1'}" />
	<input type="hidden" name="numPerPage" value="{$numPerPage}" />
	<input type="hidden" name="_order" value="{$_REQUEST._order}"/>
	<input type="hidden" name="_sort" value="{$_REQUEST._sort}"/>
	<input type="hidden" name="search_where[supplier_id][eq]" value="{$_REQUEST.search_where.supplier_id.eq}"/>
	<input type="hidden" name="search_where[depot_id][eq]" value="{$_REQUEST.search_where.depot_id.eq}"/>
</form>
<div class="page">
	<div class="pageHeader">
		<form onsubmit="return navTabSearch(this);" action="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/report/')}" method="post">
			<table class="searchContent" width="100%" style="align:left;">
				<tr>
 					<td width="6%" align="right">供应商：</td>
 					<td width="15%" align="left">
						<select class="combox" name="search_where[supplier_id][eq]">
							<option value="">请选择</option>
							<foreach name='supplier' item='v'>
								<option value="{$v['id']}" <eq name="_REQUEST.search_where.supplier_id.eq" value="$v['id']">selected=selected</eq>>{$v['name']}</option>
							</foreach>
						</select>
					</td>	
					<td width="6%" align="right">库房：</td>
					<td width="10%" align="right">
	 					<select class="combox" name="search_where[depot_id][eq]">
							<option value="">请选择</option>
							<foreach name='depot' item='v'>
								<option value="{$v['id']}" <eq name="_REQUEST.search_where.depot_id.eq" value="$v['id']">selected=selected</eq>>{$v['name']}</option>
							</foreach>
						</select>		
					</td>
					<td align="right" width="6%">
						<div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
					</td>
		    	</tr>
			</table>
		</form>
	</div>
	<div class="pageContent">
		<!--<div class="panelBar">
			<ul class="toolBar">
				<li><a class="add" href="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/add')}" target="navTab" rel="storageAdd" title="物料入库"><span>添加</span></a></li>
				<li class="line">line</li>
			</ul>
		</div>
		<div id="w_list_print">-->
		<table class="list" width="100%" layoutH="62">
			<thead align="center">

				<tr>
					<th>序号</th>
					<th orderField="supplier_name" <if condition="$Think.REQUEST._order eq 'supplier_name'">class="{$Think.REQUEST._sort}"</if>>供应商</th>
					<th orderField="depot_name" <if condition="$Think.REQUEST._order eq 'depot_name'">class="{$Think.REQUEST._sort}"</if>>库房</th>
					<th>期初金额</th>
					<th>收入金额</th>
					<th>支出金额</th>
					<th>调出金额</th>
					<th>调入金额</th>
					<th>退货金额</th>
					<th>库存金额</th>
					<th>备注</th>
				</tr>
			</thead>
			<tbody align="center">
				<foreach name='list' item='v' key='k'>				
					<tr target="sid_goods" rel="">
					<td>{$k+1}</td>
					<td>{$v['supplier_name']}</td>
					<td>{$v['depot_name']}</td>
					<td>{$v['sbegin']}</td>
					<td>{$v['sincome']}</td>
					<td>{$v['spay']}</td>
					<td>{$v['smovein']}</td>
					<td>{$v['smoveout']}</td>
					<td>{$v['srefund']}</td>
					<td>{$v['spay']}</td>
 					<td></td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="panelBar">
			<div class="pages">
				<span>显示</span>
				<select class="combox" name="numPerPage" onchange="navTabPageBreak({$Think.config.TMPL_L_DELIM}numPerPage:this.value{$Think.config.TMPL_R_DELIM})">
					<option value="10" <if condition="$numPerPage eq 10">selected</if>>10</option>
					<option value="20" <if condition="$numPerPage eq 20">selected</if>>20</option>
					<option value="50" <if condition="$numPerPage eq 50">selected</if>>50</option>
					<option value="100" <if condition="$numPerPage eq 100">selected</if>>100</option>
				</select>
				<span>条，共{$totalCount}条</span>
			</div>
			<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="{$pageNumShown}" currentPage="{$currentPage}">
			</div>
		</div>
	</div>
</div>